#version 450

layout (push_constant) uniform UIPushConstants {
	vec2 scale;
	vec2 translate;
	int canvas;
} constants;


layout (location = 0) in vec2 inPos;
layout (location = 1) in vec2 inUV;
layout (location = 2) in vec4 inColor;

layout (location = 0) out vec2 outUV;
layout (location = 1) out vec4 outColor;
layout (location = 2) out int outCanvas;

void main() 
{
	outUV = inUV;
	outColor = inColor;
	outCanvas = constants.canvas;
	gl_Position = vec4(inPos * constants.scale + constants.translate, 0.0, 1.0);
}